let less = require('less');
function loader(source) {
    let cssStr;
    //render看起来是异步 其实是同步的
    less.render(source,{filename:this.resource},(err,output)=>{
        cssStr = output
    })
}